import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/user/role/getList',
    method: 'post',
    data: query
  })
}
export function fetchRole(id) {
  return request({
    url: '/user/role/getDetail',
    method: 'post',
    data: { id }
  })
}
